package com.crdeng.business.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.crdeng.business.entity.InStock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crdeng.business.vo.AddInStockVO;
import com.crdeng.business.vo.InStockDetailVO;
import com.crdeng.business.vo.InStockQueryMapVO;
import com.crdeng.business.vo.InStockVO;
import com.crdeng.system.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author crdeng
 * @since 2021-01-03
 */
public interface InStockService extends IService<InStock> {

    /**
     * 分页条件查询
     * @param page
     * @param queryMap
     * @return
     */
    IPage<InStockVO> findInStockPage(IPage<InStockVO> page, InStockQueryMapVO queryMap);

    /**
     * 查询明细
     * @param id
     * @return
     */
    InStockDetailVO getDetail(Long id,Integer current, Integer size);

    /**
     * 添加入库单
     * @param addInStockVO
     */
    void add(AddInStockVO addInStockVO);

    /**
     * 改变入库单的状态
     * @param statusNum
     */
    void alterStatus(Long id,Integer statusNum);
}
